<div class="container_wrap">
    <div>
        <div style="float:left; width:250px; margin-right:10px;">
            <form name="regForm" id="regForm" method="post">
            
            <div><span id="previewImage">
            <?php 
            if (empty($aUserInfo['user_photo']) === false) {
                echo '<img src="'.contCommon::getImageUrl($aUserInfo['user_photo']).'" width="160px" />';
            } else {
                echo '<img src="https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash2/c66.66.828.828/s160x160/480426_10200814199215695_571433255_n.jpg" width="160px" />';
            }
            ?>
            </span></div>
            
            <?php  
            $UA = $_SERVER['HTTP_USER_AGENT'];
            // Chrome, Firefox
            if (strpos($UA, 'Chrome') !== false || strpos($UA, 'Firefox') !== false) {
            ?>
                <div style="padding-top:5px;">
                    <span class="hide" id="el_span_img">
                    <input type="file" name="uploads" id="uploads" value="" onchange="Base.previewImage(this, $('#previewImage'), 160); My.modPhoto();" class="hide" />
                    </span>
                    <button type="button" onclick="$('#uploads').click();" class="button large gray">이미지</button>
                    <!-- 
                    <a href="javascript:;" onclick="My.regist();" class="button middle green">게시</a>
                     -->
                </div>
            <?php 
            // IE, etc
            } else {
            ?>
                <div style="padding-top:5px;">
                    <span class="hide" id="el_span_img">
                    <input type="file" name="uploads" id="uploads" value="" onchange="Base.previewImage(this, $('#previewImage'), 160); My.modPhoto();" class="input_file" />
                    </span>
                    <button type="button" onclick="if ($('#el_span_img').css('display') == 'none') { $('#el_span_img').show(); } else { $('#el_span_img').hide(); }" class="button large gray">이미지</button>
                    <!-- 
                    <a href="javascript:;" onclick="My.regist();" class="button middle green">게시</a>
                     -->
                </div>
            <?php } ?>
            
            </form>
        </div>
        
        <div>
            <div style="padding-bottom:5px; margin-bottom:10px;">기본정보</div>
            <form name="modUserInfoForm" id="modUserInfoForm" method="post" onsubmit="My.modUserInfo(); return false;">
            <ul>
                <li>
                    <span style="display:inline-block; width:100px;">이름</span>
                    <span><input type="text" name="user_name" id="user_name" value="<?php echo $aUserInfo['user_name']; ?>" class="input_text" /></span>
                </li>
                <!-- 
                <li>
                    <span style="display:inline-block; width:100px;">이메일</span>
                    <span><input type="text" name="user_name" id="user_name" value="" class="input_text" /></span>
                </li>
                 -->
                <li>
                    <button type="submit" class="button large green">수정</button>
                </li>
            </ul>
            </form>
        </div>
        
    </div>
</div>